<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>4. 散点图(bug)</title>
  <style>
    #canvas {
      outline: 1px solid #f00;
    }
    #tip {
      position: absolute;
      top: 0;
      left: 0;
      padding: 10px;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid royalblue;
      transition: all .3s;
      visibility: hidden;
    }
  </style>
</head>
<body>
  <div style="position:relative;">
    <canvas id="canvas" width="1100" height="800"></canvas>
    <div id="tip"></div>
  </div>
  <script src="index.js"></script>
</body>
</html>
